/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.chenzehe.zdmya.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-7-26 下午10:19:46
 */
@Entity
@Table(name = "tbl_content")
public class Content {
	@Id
	@Column(name = "id")
	@GeneratedValue
	private Integer id;

	@Column(name = "user_id")
	private Integer userId;

	@Column(name = "user_name")
	private String userName;

	@Column(name = "title")
	private String title;

	@Column(name = "title2")
	private String title2;

	@Column(name = "summary")
	private String summary;

	@Column(name = "content")
	private String content;

	@Column(name = "img")
	private String img;

	@Column(name = "real_url")
	private String realUrl;

	@Column(name = "go_url")
	private String goUrl;

	@Column(name = "category_ename")
	private String categoryEname;

	@Column(name = "category_name")
	private String categoryName;

	@Column(name = "category_parent_ename")
	private String categoryParentEname;

	@Column(name = "category_parent_name")
	private String categoryParentName;

	@Column(name = "mall_ename")
	private String mallEname;

	@Column(name = "mall_name")
	private String mallName;

	@Column(name = "type_ename")
	private String typeEname;

	@Column(name = "type_name")
	private String typeName;

	@Column(name = "area_ename")
	private String areaEname;

	@Column(name = "area_name")
	private String areaName;

	@Column(name = "issue_time")
	private Date issueTime;

	@Column(name = "modify_time")
	private Date modifyTime;

	@Column(name = "is_toped")
	private Integer isToped;

	@Column(name = "is_enabled")
	private Integer isEnabled;

	@Column(name = "comment_count")
	private Integer commentCount;

	@Column(name = "collection_count")
	private Integer collectionCount;

	@Column(name = "zhi_count")
	private Integer zhiCount;

	@Column(name = "nozhi_count")
	private Integer nozhiCount;

	@Column(name = "status")
	private Integer status;

	@Transient
	private Content preContent;

	@Transient
	private Content nextContent;

	public Content() {

	}

	public Content(String goUrl) {
		this.goUrl = goUrl;
	}

	public Content(Integer id, Integer userId, String userName, String title,
			String title2, String summary, String content, String img,
			String realUrl, String goUrl, String categoryEname,
			String categoryName, String categoryParentEname,
			String categoryParentName, String mallEname, String mallName,
			String typeEname, String typeName, Date issueTime, Date modifyTime,
			Integer isToped, Integer isEnabled, Integer commentCount,
			Integer collectionCount, Integer zhiCount, Integer nozhiCount,
			Content preContent, Content nextContent, Integer status) {
		this.id = id;
		this.userId = userId;
		this.userName = userName;
		this.title = title;
		this.title2 = title2;
		this.summary = summary;
		this.content = content;
		this.img = img;
		this.realUrl = realUrl;
		this.goUrl = goUrl;
		this.categoryEname = categoryEname;
		this.categoryName = categoryName;
		this.categoryParentEname = categoryParentEname;
		this.categoryParentName = categoryParentName;
		this.mallEname = mallEname;
		this.mallName = mallName;
		this.typeEname = typeEname;
		this.typeName = typeName;
		this.issueTime = issueTime;
		this.modifyTime = modifyTime;
		this.isToped = isToped;
		this.isEnabled = isEnabled;
		this.commentCount = commentCount;
		this.collectionCount = collectionCount;
		this.zhiCount = zhiCount;
		this.nozhiCount = nozhiCount;
		this.preContent = preContent;
		this.nextContent = nextContent;
		this.status = status;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle2() {
		return title2;
	}

	public void setTitle2(String title2) {
		this.title2 = title2;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getCategoryEname() {
		return categoryEname;
	}

	public void setCategoryEname(String categoryEname) {
		this.categoryEname = categoryEname;
	}

	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getCategoryParentEname() {
		return categoryParentEname;
	}

	public void setCategoryParentEname(String categoryParentEname) {
		this.categoryParentEname = categoryParentEname;
	}

	public String getCategoryParentName() {
		return categoryParentName;
	}

	public void setCategoryParentName(String categoryParentName) {
		this.categoryParentName = categoryParentName;
	}

	public String getMallEname() {
		return mallEname;
	}

	public void setMallEname(String mallEname) {
		this.mallEname = mallEname;
	}

	public String getMallName() {
		return mallName;
	}

	public void setMallName(String mallName) {
		this.mallName = mallName;
	}

	public String getTypeEname() {
		return typeEname;
	}

	public void setTypeEname(String typeEname) {
		this.typeEname = typeEname;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Date getIssueTime() {
		return issueTime;
	}

	public void setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getIsToped() {
		return this.isToped;
	}

	public void setIsToped(Integer isToped) {
		this.isToped = isToped;
	}

	public Integer getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	public String getRealUrl() {
		return realUrl;
	}

	public void setRealUrl(String realUrl) {
		this.realUrl = realUrl;
	}

	public String getGoUrl() {
		return goUrl;
	}

	public void setGoUrl(String goUrl) {
		this.goUrl = goUrl;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public Integer getCollectionCount() {
		return collectionCount;
	}

	public void setCollectionCount(Integer collectionCount) {
		this.collectionCount = collectionCount;
	}

	public Integer getZhiCount() {
		return zhiCount;
	}

	public void setZhiCount(Integer zhiCount) {
		this.zhiCount = zhiCount;
	}

	public Integer getNozhiCount() {
		return nozhiCount;
	}

	public void setNozhiCount(Integer nozhiCount) {
		this.nozhiCount = nozhiCount;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Content getPreContent() {
		return preContent;
	}

	public void setPreContent(Content preContent) {
		this.preContent = preContent;
	}

	public Content getNextContent() {
		return nextContent;
	}

	public void setNextContent(Content nextContent) {
		this.nextContent = nextContent;
	}

	public String getAreaEname() {
		return areaEname;
	}

	public void setAreaEname(String areaEname) {
		this.areaEname = areaEname;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

}
